import { getRequest,postRequest,postNoAuthRequest } from '@/libs/axios';

/**
 * 用户登录接口
 */
export const loginOnWeb = (params) => {
    // API调用后端
    return postNoAuthRequest('/user/login', params)
}

/**
 * 用户注册接口
 */
export const register = (params) => {
    // API调用后端
    return postNoAuthRequest('/user/register', params)
}

export const listCategory = () => {
    // API调用后端
    return getRequest('/category/list')
}


export const listCarousel = () => {
    // API调用后端
    return getRequest('/product/listImg')
}


export const foundation = (params) => {
    // API调用后端
    return postRequest('/product/foundation',params)
}

export const detail = (params) => {
    // API调用后端
    return postRequest('/product/detail',params)
}